package com.xnx3.banmahuishou.core.entity;

import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import com.xnx3.j2ee.entity.BaseEntity;

/**
 * 骑手请假记录
 * @author 王晓龙
 */
@Entity()
@Table(name = "laji_qishou_leave_record")
public class QishouLeaveRecord extends BaseEntity implements java.io.Serializable {
	/**
	 * 请假记录状态 1:审核中
	 */
	public static final Short STATE_UNDER = 1;
	/**
	 * 请假记录状态 2:已通过且等待函数处理
	 */
	public static final Short STATE_PASSED = 2;
	/**
	 * 请假记录状态 3:已拒绝
	 */
	public static final Short STATE_REJECTED = 3;
	/**
	 * 请假记录状态 4:已通过且函数处理完成
	 */
	public static final Short STATE_FINISH = 4;
	
	private Integer id;	//自增id
	private Integer createTime;	//创建时间,十位数时间戳
	private Integer startTime;	//请假开始时间,十位数时间戳
	private Integer endTime;	//请假结束时间,十位数时间戳
	private String reason;	//请假原因
	private Short state;	//请假记录状态,1:审核中,2:已通过且等待函数处理,3:已拒绝,4:已通过且函数处理完成
	private Integer qishouUserid;	//骑手用户id,关联user.id
	private String qishouUsername;	//骑手姓名,关联user.nickname
	private String qishouPhone;	//骑手手机号,关联user.phone
	private Integer wanggeUserid;	//网格用户id,关联user.id
	
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	@Column(name = "create_time", columnDefinition="int(11) COMMENT '创建时间,十位数时间戳' default '0'")
	public Integer getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Integer createTime) {
		this.createTime = createTime;
	}
	@Column(name = "start_time", columnDefinition="int(11) COMMENT '请假开始时间,十位数时间戳' default '0'")
	public Integer getStartTime() {
		return startTime;
	}
	public void setStartTime(Integer startTime) {
		this.startTime = startTime;
	}
	@Column(name = "end_time", columnDefinition="int(11) COMMENT '请假结束时间,十位数时间戳' default '0'")
	public Integer getEndTime() {
		return endTime;
	}
	public void setEndTime(Integer endTime) {
		this.endTime = endTime;
	}
	@Column(name = "reason", columnDefinition="char(100) COLLATE utf8mb4_unicode_ci COMMENT '请假原因' default ''")
	public String getReason() {
		return reason;
	}
	public void setReason(String reason) {
		this.reason = reason;
	}
	@Column(name = "state", columnDefinition="tinyint(3) COMMENT '请假记录状态,1:审核中,2:已通过且等待函数处理,3:已拒绝,4:已通过且函数处理完成' default '0'")
	public Short getState() {
		return state;
	}
	public void setState(Short state) {
		this.state = state;
	}
	@Column(name = "qishou_userid", columnDefinition="int(11) COMMENT '骑手用户id,关联user.id' default '0'")
	public Integer getQishouUserid() {
		return qishouUserid;
	}
	public void setQishouUserid(Integer qishouUserid) {
		this.qishouUserid = qishouUserid;
	}
	@Column(name = "qishou_username", columnDefinition="char(30) COLLATE utf8mb4_unicode_ci COMMENT '骑手姓名,关联user.nickname' default ''")
	public String getQishouUsername() {
		return qishouUsername;
	}
	public void setQishouUsername(String qishouUsername) {
		this.qishouUsername = qishouUsername;
	}
	@Column(name = "qishou_phone", columnDefinition="char(12) COLLATE utf8mb4_unicode_ci COMMENT '骑手手机号,关联user.phone' default ''")
	public String getQishouPhone() {
		return qishouPhone;
	}
	public void setQishouPhone(String qishouPhone) {
		this.qishouPhone = qishouPhone;
	}
	@Column(name = "wangge_userid", columnDefinition="int(11) COMMENT '网格用户id,关联user.id' default '0'")
	public Integer getWanggeUserid() {
		return wanggeUserid;
	}
	public void setWanggeUserid(Integer wanggeUserid) {
		this.wanggeUserid = wanggeUserid;
	}
	@Override
	public String toString() {
		return "QishouLeaveRecord [id=" + id + ", createTime=" + createTime + ", startTime=" + startTime + ", endTime="
				+ endTime + ", reason=" + reason + ", state=" + state + ", qishouUserid=" + qishouUserid
				+ ", qishouUsername=" + qishouUsername + ", qishouPhone=" + qishouPhone + ", wanggeUserid="
				+ wanggeUserid + "]";
	}
	
}
